package com.hotel.homehotel.before.entiy;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel
public class Room {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "房间id")
    @TableId(value = "room_id")
    private String id;

    @ApiModelProperty(value = "房间名")
    @TableField("room_name")
    private String name;

    @ApiModelProperty(value = "房间类型")
    @TableField("room_category")
    private String category;

    @ApiModelProperty(value = "房间价格")
    @TableField("room_price")
    private Integer price;

    @ApiModelProperty(value = "房间查询次数")
    @TableField("room_count")
    private Integer count;

    @ApiModelProperty(value = "折扣")
    @TableField("room_discount")
    private Double discount;


    @ApiModelProperty(value = "房间介绍")
    @TableField("room_introduce")
    private String introduce;

    @ApiModelProperty(value = "图片")
    @TableField("room_picture")
    private String picture;
    @ApiModelProperty(value = "地址")
    @TableField("room_address")
    private String address;

    @JsonIgnore
    @ApiModelProperty(value = "创建时间",example = "2019-01-01 8:00:00")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;


    @JsonIgnore
    @ApiModelProperty(value = "更新时间")
    @TableField(fill=FieldFill.INSERT_UPDATE)
    private Date updatedTime;


    @JsonIgnore
    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    private Integer isDeleted;


    @JsonIgnore
    @ApiModelProperty(value = "是否启用 1（true）启用， 0（false）禁用")
    private Integer isEnabled;


    @JsonIgnore
    @ApiModelProperty(value = "创建者")
    private String createdBy;

    @JsonIgnore
    @ApiModelProperty(value = "修改者")
    private String updatedBy;

}
